/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-04-30
 * Time: 10:58
 */
public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList=new MySingleList();
        mySingleList.addFirst(99);
        mySingleList.addLast(100);
        mySingleList.addLast(30);
        mySingleList.addLast(40);
        mySingleList.addIndex(2,50);
        mySingleList.remove(40);
        mySingleList.remove(99);
        mySingleList.addFirst(100);
        mySingleList.addFirst(100);
        mySingleList.addLast(30);
        mySingleList.removeAllKey(100);
        mySingleList.removeAllKey(30);
        mySingleList.display();
        mySingleList.clear();
       // mySingleList.display();
    }
}
